﻿#ifndef FILTEXTSTYLE_H
#define FILTEXTSTYLE_H

#include <QObject>
#include <QFont>
#include <QtQml>

#include "../common/stdafx.h"
#include "../common/singleton.h"


class FilTextStyle : public QObject
{
    Q_OBJECT

public:
    SINGLETON(FilTextStyle)
    Q_PROPERTY_AUTO(QString, family)
    Q_PROPERTY_AUTO(QFont, Caption)
    Q_PROPERTY_AUTO(QFont, Body)
    Q_PROPERTY_AUTO(QFont, BodyStrong)
    Q_PROPERTY_AUTO(QFont, Subtitle)
    Q_PROPERTY_AUTO(QFont, Title)
    Q_PROPERTY_AUTO(QFont, TitleLarge)
    Q_PROPERTY_AUTO(QFont, Display)
    QML_NAMED_ELEMENT(FilTextStyle)
    QML_SINGLETON

public:
    static FilTextStyle *create(QQmlEngine *engine, QJSEngine *jsengine) {
        return getInstance();
    }

private:
    explicit FilTextStyle(QObject *parent = nullptr);

signals:
};

#endif // FILTEXTSTYLE_H
